package com.numberone.system.domain;


import com.numberone.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 行业表 industry
 * 
 * @author numberone
 * @date 2020-09-28
 */
public class Industry extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private Long id;
	/** 标签名 */
	private String title;
	/** 父id */
	private Long pid;

	private List<Industry> child;

	public List<Industry> getChild() {
		return child;
	}

	public void setChild(List<Industry> child) {
		this.child = child;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}
	public void setPid(Long pid) 
	{
		this.pid = pid;
	}

	public Long getPid() 
	{
		return pid;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("pid", getPid())
            .toString();
    }
}
